﻿@using Orchard.ContentManagement;
@using Orchard.Contrib.ShapeMessaging.Extensions
@using Orchard.Mvc.Extensions
@model dynamic

@{
    Orchard.ContentManagement.ContentItem contentItem = Model.User;
    var site = Model.Site as Orchard.Settings.ISite;
    var user = contentItem.As<Orchard.Users.Models.UserPart>();
    var person = user.As<Contrib.Mod.RegistrationProviders.Models.PersonPart>();
} 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title></title>
</head>
<body>
    <table width='100%' cellpadding='10' cellspacing='0' bgcolor='#666666' style="font-family: Tahoma, 'Helvetica Neue', Arial, Helvetica, sans-serif; color: #434343;">
        <tbody>
            <tr>
                <td valign='top' align='center'>
                    <table width='550' cellpadding='0' cellspacing='0'>
                        <tbody>
                            <tr>
                                <td style='background-color: #FFFFFF; border-top: 0px solid #333333; border-bottom: 10px solid #CCCCCC'>
                                    <center>
                                        <h1><a title="PR Week Live" href="@Url.AbsoluteContent("~/")">PM Webinars</a></h1>
                                    </center>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                    <table width='550' cellpadding='20' cellspacing='0' bgcolor='#FFFFFF'>
                        <tbody>
                            <tr>
                                <td valign='top' bgcolor='#FFFFFF' style='font-size: 12px; color: #000000; line-height: 150%; font-family: trebuchet ms'></td>
                            </tr>
                            <tr>
                                <td align="left" valign="top" style="font-size: 12pt;">
                                    
                                    <div>
                                        <p>Dear @person.FullName, </p>
                                        <br />
                                        <p>Thank you for registering for:</p>
                                        <p>Webinar: Recruitment Priorities. What’s most important: skills, experience, cultural fit or potential?</p>
                                        <p>Live at: 25th October, 3-4pm UK time</p>
                                        <p>Presented by: Rob MacLachlan, Claire McCartney, Hesketh Emden FCIPD</p>
                                        <p>Which you will be able to view at <a href="@Url.AbsoluteContent("~/")">PM Webinars</a></p>
                                    </div>

                                </td>
                            </tr>
                            <tr>
                                <td align="left" valign="top" style="font-size: 12pt;">
                                    <p>Best wishes,</p>
                                    <br />
                                    <p>Shreena Shah</p>
                                    <p>PM Webinars</p>
                                    <p>Shreena.shah@haymarket.com</p>
                                    <br />
                                    
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </td>
            </tr>
        </tbody>
    </table>
</body>
</html>